import request from '@/utils/request'

/* 水质数据接口 */

// 分页
export function getQualityPage(data) {
  return request({
    url: '/quality-analysis/page',
    method: 'post',
    data
  })
}

// 删除
export function deleteQualityById(id) {
  return request({
    url: `/quality-analysis/${id}`,
    method: 'delete'
  })
}

// 添加水质数据
export function addQuality(data) {
  return request({
    url: '/quality-analysis',
    method: 'post',
    data
  })
}

// 详情
export function getQualityDetailById(id) {
  return request({
    url: `/quality-analysis/${id}`,
    method: 'post'
  })
}

// 修改
export function updateQuality(data) {
  return request({
    url: '/quality-analysis',
    method: 'put',
    data
  })
}
